//
//  UIImageView+URL.m
//  Soha
//
//  Created by 谭飞 on 2018/9/7.
//  Copyright © 2018年 LB. All rights reserved.
//

#import "UIImageView+URL.h"

@implementation UIImageView (URL)

- (void)imageWithURL:(NSString *)urlStr defaultImage:(UIImage *)defaultimage {
    [self sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",Img_SERVER,urlStr]] placeholderImage:defaultimage];
}

- (void)imageWithCompleteUrl:(NSString *)url defaultImage:(UIImage *)defaultImage {
    [self sd_setImageWithURL:[NSURL URLWithString:url] placeholderImage:defaultImage];
}

@end
